<script lang="ts" setup>
import { injectState } from "../state";

defineOptions({ name: "Headler" });

const { selectedList, tableRef, detailDialogRef } = injectState()!;
</script>

<template>
	<div flex="~ justify-between">
		<div flex="~">
			<el-button
				@click="detailDialogRef?.trigger('write')"
				style="width: 80px"
				type="primary"
			>
				+ 新建
			</el-button>
			<el-button :disabled="selectedList.length === 0" style="width: 100px">
				批量删除
			</el-button>
		</div>
	</div>
</template>
